package com.Program;

public class Account {
    private String phone;
    private String username;
    private String password;
    //月消费金额
    //余额
    private double money;//余额
    //套餐
    private TaoCan taoCan;
    private Deplete deplete;
   public Account(String phone,String username,
                  String password,double money,TaoCan taoCan,Deplete deplete){
       this.phone=phone;
       this.username=username;
       this.password=password;
       this.money=money;
       this.taoCan=taoCan;
       this.deplete=deplete;
   }

    public Deplete getDeplete() {
        return deplete;
    }

    public void setDeplete(Deplete deplete) {
        this.deplete = deplete;
    }

    public Account(String phone, String username, String password,
                   double payMoney, double money) {
        this.phone = phone;
        this.username = username;
        this.password = password;
        this.money = money;

    }

    public Account() {
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public TaoCan getTaoCan() {
        return taoCan;
    }

    public void setTaoCan(TaoCan taoCan) {
        this.taoCan = taoCan;
    }

    @Override
    public String toString() {
        return "Account{" +
                "电话='" + phone + '\'' +
                ", 名字='" + username + '\'' +
                ", 密码='" + password + '\'' +
                ", 余额=" + money +
                ", 套餐=" + taoCan.toString() +
                ", 消费=" + deplete.toString() +
                '}';
    }
}
